<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/template/common.jsp"%>
<jsp:include page="/loginCheck.jsp" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=U">
<link rel="StyleSheet" href="css/jquery.qtip.min.css" type="text/css">
<link rel="StyleSheet" href="css/bootstrap.min.css" type="text/css">
<link rel="StyleSheet" href="css/messi.min.css" type="text/css">
<link rel="StyleSheet" href="css/style.css" type="text/css">
<script type="text/javascript" src="js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="js/jquery.qtip.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/messi.min.js"></script>
<script type="text/javascript" src="js/util.js"></script>
<script type="text/javascript" src="js/checkform.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<title>予約の変更・削除</title>
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
</head>
<body>
	<div class="wrapper">
		<tiles:insertTemplate template="/template/header.jsp"></tiles:insertTemplate>
		<div class="panel panel-success">
			<div class="panel-heading">
				<img src="img/order.png"><strong>予約の変更・削除</strong><img alt=""
					src="img/help.png" class="help-icon">
			</div>
			<div class="panel-body">
				<div class="container">
					<form action="editYoyaku.action" class="form-horizontal edit-form"
						method="post" enctype="multipart/form-data"
						onsubmit="return validateSubmit(this);">
						<div class="form-group">
							<label for="inputEmail1" class="col-sm-1 control-label">予約No.</label>
							<div class="col-sm-6">
								<input type="text" class="form-control" id="inputEmail1"
									name="seqNoName" style="height: 30px" value=""
									readonly="readonly"> <input type="hidden" name="seqNo"
									id="seqNo" value="">
							</div>
						</div>
						<div class="form-group">
							<label for="inputEmail3" class="col-sm-1 control-label">品名コード</label>
							<div class="col-sm-6">
								<input type="text" class="form-control" id="inputEmail3"
									name="feedCD" style="height: 30px" value="" readonly="readonly">
							</div>
						</div>
						<div class="form-group">
							<label for="inputEmail3" class="col-sm-1 control-label">品名</label>
							<div class="col-sm-6">
								<input type="text" class="form-control" id="inputEmail3"
									name="feedName" style="height: 30px;" value=""
									readonly="readonly">
							</div>
						</div>
						<div class="form-group">
							<label for="inputEmail3" class="col-sm-1 control-label">容量</label>
							<input type="hidden" value="" class="hd_type">
							<div class="col-sm-6">
								<c:choose>
									<c:when test="${!overDate}">
										<select class="form-control capacity-choise" name="formCD">
											<!-- 		<s:if test="listCapacity.size()>0">
												<s:iterator status="stat" value="listCapacity">
													<c:choose>
														<c:when test="${formcd == formCD}">
															<option value="<s:property value="formcd" />"
																weight="<s:property value="formweight" />"
																selected="selected">
																<s:property value="formcd" />
															</option>
														</c:when>
														<c:otherwise>
															<option value="<s:property value="formcd" />"
																weight="<s:property value="formweight" />">
																<s:property value="formcd" />
															</option>
														</c:otherwise>
													</c:choose>
												</s:iterator>
											</s:if>
											 -->
										</select>
									</c:when>
									<c:otherwise>
										<!-- 	<s:if test="listCapacity.size()>0">
											<s:iterator status="stat" value="listCapacity">
												<c:if test="${formcd == formCD}">
													<input class="form-control" type="text"
														style="height: 30px;"
														value="<s:property value="formcd" />">
												</c:if>
											</s:iterator>
										</s:if>
										 -->
									</c:otherwise>
								</c:choose>

							</div>
						</div>
						<div class="form-group">
							<label for="inputEmail3" class="col-sm-1 control-label">数量</label>
							<div class="col-sm-6">
								<input type="text"
									class="form-control input_quantity input_check"
									id="inputEmail3" name="qty" style="height: 30px;" value="">
							</div>
							<!-- 	<c:if test="${!overDate}">
								<button type="button"
									class="col-sm-1 btn btn-info quantity-check bt-check">チェック</button>
							</c:if>
							 -->
						</div>
						<div class="form-group">
							<label for="inputEmail4" class="col-sm-1 control-label">重量</label>
							<div class="col-sm-6">
								<input type="text" class="form-control input_weight input_check"
									id="inputEmail4" name="weight" style="height: 30px;" value="">
							</div>
							<!-- <c:if test="${!overDate}">
								<button type="button"
									class="col-sm-1 btn btn-info weight-check bt-check">チェック</button>
							</c:if> -->
						</div>
						<div class="form-group">
							<label for="inputEmail3" class="col-sm-1 control-label">出荷希望日</label>
							<div class="col-sm-6">
								<div class="col-sm-4 select-f" style="padding-left: 0px;">
									<div class="input-group">
										<select class="form-control" name="productexpect_year">
											<!-- 	<s:iterator status="stat" value="listYear" var="year">
												<s:if test="%{_year == #year}">
													<option value="<s:property/>" selected="selected"><s:property /></option>
												</s:if>
												<s:else>
													<option value="<s:property/>"><s:property /></option>
												</s:else>
											</s:iterator>
											 -->
										</select> <span class="input-group-addon">年</span>
									</div>
								</div>
								<div class="col-sm-4">
									<div class="input-group">
										<select class="form-control" name="productexpect_month">
											<!-- 	<s:iterator status="stat" value="listMonth" var="month">
												<s:if test="%{_month == #month}">
													<option value="<s:property/>" selected="selected"><s:property /></option>
												</s:if>
												<s:else>
													<option value="<s:property/>"><s:property /></option>
												</s:else>
											</s:iterator> -->
										</select> <span class="input-group-addon">月</span>
									</div>
								</div>
								<div class="col-sm-4">
									<div class="input-group">
										<select class="form-control" name="productexpect_day">
											<!-- 	<s:iterator status="stat" value="listDay" var="day">
												<s:if test="%{_day == #day}">
													<option value="<s:property/>" selected="selected"><s:property /></option>
												</s:if>
												<s:else>
													<option value="<s:property/>"><s:property /></option>
												</s:else>
											</s:iterator>
											 -->
										</select> <span class="input-group-addon">日</span>
									</div>
								</div>
							</div>
						</div>
						<div class="form-group">
							<label for="inputEmail3" class="col-sm-1 control-label">分場</label>
							<div class="col-sm-6">
								<select class="form-control" name="jichikuCD">
									<option value="0" selected="selected">選択してください。</option>
									<!-- 	<s:iterator status="stat" value="listJichiku">
										<c:choose>
											<c:when test="${jichikucd == jichikuCD}">
												<option value="<s:property value="jichikucd" />"
													selected="selected">
													<s:property value="jichikuname" /></option>
											</c:when>
											<c:otherwise>
												<option value="<s:property value="jichikucd" />">
													<s:property value="jichikuname" /></option>
											</c:otherwise>
										</c:choose>
									</s:iterator>
									 -->
								</select>
							</div>
						</div>
						<div class="form-group">
							<label for="inputEmail3" class="col-sm-1 control-label">自由コメント</label>
							<div class="col-sm-6">
								<textarea class="form-control" rows="3" name="freeComment"></textarea>
							</div>
						</div>
						<div class="form-group">
							<label for="inputEmail3" class="col-sm-1 control-label"></label>
							<div class="col-sm-6">
								<input type="hidden" name="overdate" class="overdate"
									value="${overDate}">
								<c:if test="${!overDate}">
									<button type="submit" class="btn btn-primary btn-xs">保存</button>
									<button onClick="return refLink();" type="button"
										class="btn btn-danger btn-xs　btn-delete">削除</button>
								</c:if>
								<a href="yoyakulist.action" class="btn btn-default btn-xs">キャンセル
								</a>
							</div>
						</div>
					</form>
				</div>
			</div>

			<tiles:insertTemplate template="/template/footer.jsp"></tiles:insertTemplate>
		</div>
	</div>
</body>
</html>